<template>
	<view>
		<view v-if="weburl">
			<web-view :src="weburl"></web-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				weburl: ''
			}
		},
		onLoad(options) {
			this.weburl = options.weburl ? decodeURIComponent(options.weburl) : ''
		},
		methods: {
			navigateToWebview() {        
				uni.navigateToWebview({          
					url: this.weburl        ,
				});      
			}
		}
	}
	
</script>

<style>

</style>